<?php
namespace app\admin\controller;
use\think\Controller;
use think\Db;

class Garden extends Controller
{
	public function index(){
		$work=Db::query("select * from Homework h,class c where h.classid631=c.clasid631 order by classid631 desc");
		$this->assign("works",$work);

		$c=db('class')->select();
		$this->assign("classes",$c);
		return $this->fetch();
	}

}